import java.util.Scanner;

public class Ex2_14{
	public static void main(String[] args){
		Scanner input = new Scanner(System.in);
		System.out.print("Enter weight in pounds: ");
		double weight = input.nextDouble();
		weight *= 0.45359237;
		System.out.print("Enter height in inches: ");
		double height = input.nextDouble();
		height *= 0.0254;
		double bmi = weight / (height * height);
		System.out.printf("BMI is %8.4f\n", bmi);
	}
}